<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@taglib uri="http://www.springframework.org/tags/form" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1 style="background-color: gray;color:silver;text-align: center; ;">
	Escpace Client    ${client.cin} : Ajout Demande de Reparation : 
</h1>
	<form action="saveRep" method="post">
		<table>
			<tr><td>ID Client :</td><td>${client.id }</td></tr>
  			<tr><td>Materiel :</td> 
 				<td>
 				<SELECT name="materiel" value="typeMat">
					<c:forEach items="${materiels}" var="m">
						<OPTION value="<c:out value="${m.typeMateriel}"/>">
							${m.typeMateriel}
						</OPTION>				
					</c:forEach>
				</SELECT>
				</td></tr> 
 			<tr><td>Panne :</td>
 			<td>
 				<SELECT name="panne" value="typePan">
					<c:forEach items="${pannes}" var="p">
						<OPTION value="<c:out value="${p.nomPanne}"/>">
							${p.nomPanne}
						</OPTION>				
					</c:forEach>
				</SELECT>
				</td></tr> 
			
- 			<tr><td>Status :</td><td>${reparation.status }</td></tr>
			<tr>
			<td><input type="submit" value="Valider Demande " /></td>		
			<td><input type="button" src="index" value="Annuler Demande " /></td>
			</tr>
		</table>	
		
	</form>
</body>
</html>